pg_restore -j

pg_restore -j

am 14.04.2010 08:38:09 von Justin Falk

--0050450163d51ed5c604842c9f97
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I'm trying to use the -j option on pg_restore while restoring a database
into PG 8.4.3.

The dump was executed on PG 8.3.7 (Windows, Server 2003) using:

pg_dump -Fc -U postgres mydb > mydb.backup

This results in a ~3.4 GB dump file.

When I try to restore I'm using:

pg_restore -d mydb -U postgres -j 4 mydb.backup

This results in an error:

pg_restore: [custom archiver] dumping a specific TOC data block out of order
not supported without ID on this input stream (fseek required)

The dump works fine if I omit the -j option. What am I doing wrong?

Thanks,

Justin

--0050450163d51ed5c604842c9f97
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

I'm trying to use the -j option on pg_restore while restorin=
g a database into PG 8.4.3.=A0

The dump was executed on PG 8.3.7 (W=
indows, Server 2003) using:

pg_dum=
p -Fc -U postgres mydb > mydb.backup


This results in a ~3.4 GB dump file.

When I try to restore=
I'm using:

pg_restore -d mydb=
-U postgres -j 4 mydb.backup

This results in an error:
>
pg_restore: [custom archiver] dumping a s=
pecific TOC data block out of order not supported without ID on this input =
stream (fseek required)

The dump works fine if I omit the -j o=
ption.=A0 What am I doing wrong?


Thanks,

Justin


--0050450163d51ed5c604842c9f97--

Re: pg_restore -j

am 20.04.2010 17:26:21 von Bruce Momjian

Justin Falk wrote:
> Hi,
>
> I'm trying to use the -j option on pg_restore while restoring a database
> into PG 8.4.3.
>
> The dump was executed on PG 8.3.7 (Windows, Server 2003) using:
>
> pg_dump -Fc -U postgres mydb > mydb.backup
>
> This results in a ~3.4 GB dump file.
>
> When I try to restore I'm using:
>
> pg_restore -d mydb -U postgres -j 4 mydb.backup
>
> This results in an error:
>
> pg_restore: [custom archiver] dumping a specific TOC data block out of order
> not supported without ID on this input stream (fseek required)
>
> The dump works fine if I omit the -j option. What am I doing wrong?

Perhaps this is fixed in 8.3.10.

--
Bruce Momjian http://momjian.us
EnterpriseDB http://enterprisedb.com

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: pg_restore -j

am 20.04.2010 17:32:18 von Tom Lane

Justin Falk writes:
> When I try to restore I'm using:
> pg_restore -d mydb -U postgres -j 4 mydb.backup
> This results in an error:
> pg_restore: [custom archiver] dumping a specific TOC data block out of order
> not supported without ID on this input stream (fseek required)

There was something similar reported here:
http://archives.postgresql.org/pgsql-admin/2010-04/msg00237. php
but we haven't got to the bottom of it yet. Can you create a
self-contained test case?

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: pg_restore -j

am 20.04.2010 17:52:48 von Scott Mead

--001517476474c3888a0484ad1173
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Apr 14, 2010 at 2:38 AM, Justin Falk wrote:

> Hi,
>
> I'm trying to use the -j option on pg_restore while restoring a database
> into PG 8.4.3.
>
> The dump was executed on PG 8.3.7 (Windows, Server 2003) using:
>
> pg_dump -Fc -U postgres mydb > mydb.backup
>
> This results in a ~3.4 GB dump file.
>
> When I try to restore I'm using:
>
> pg_restore -d mydb -U postgres -j 4 mydb.backup
>
> This results in an error:
>
> pg_restore: [custom archiver] dumping a specific TOC data block out of
> order not supported without ID on this input stream (fseek required)
>
> The dump works fine if I omit the -j option. What am I doing wrong?
>

I'm pretty sure that you need to use the 8.4 version of pg_dump when you
create the backup file, then it should work.

--Scott

>
> Thanks,
>
> Justin
>

--001517476474c3888a0484ad1173
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


On Wed, Apr 14, 2010 at 2:38 AM, Justin Falk=
<jfalkmu@gmail.c=
om
>
wrote:
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,

I'm trying to use the -j option on pg_restore while restorin=
g a database into PG 8.4.3.=A0

The dump was executed on PG 8.3.7 (W=
indows, Server 2003) using:

pg_dump =
-Fc -U postgres mydb > mydb.backup



This results in a ~3.4 GB dump file.

When I try to restore=
I'm using:

pg_restore -d mydb -=
U postgres -j 4 mydb.backup

This results in an error:



pg_restore: [custom archiver] dumping a spe=
cific TOC data block out of order not supported without ID on this input st=
ream (fseek required)

The dump works fine if I omit the -j opt=
ion.=A0 What am I doing wrong?


I'm pretty sure that you need to use t=
he 8.4 version of pg_dump when =A0you create the backup file, then it shoul=
d work.

--Scott =A0
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex;">


Thanks,

Justin




--001517476474c3888a0484ad1173--

Re: pg_restore -j

am 20.04.2010 17:55:59 von Kevin Grittner

Justin Falk wrote:

> I'm trying to use the -j option on pg_restore while restoring a
> database into PG 8.4.3.
>
> The dump was executed on PG 8.3.7 (Windows, Server 2003) using:

Using the 8.4.3 version of pg_dump, as recommended in the
documentation?:

http://www.postgresql.org/docs/8.4/interactive/migration.htm l

"It is recommended that you use the pg_dump and pg_dumpall programs
from the newer version of PostgreSQL, to take advantage of any
enhancements that might have been made in these programs."

-Kevin

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: pg_restore -j

am 20.04.2010 18:05:26 von Scott Marlowe

On Wed, Apr 14, 2010 at 12:38 AM, Justin Falk wrote:
> Hi,
>
> I'm trying to use the -j option on pg_restore while restoring a database
> into PG 8.4.3.
>
> The dump was executed on PG 8.3.7 (Windows, Server 2003) using:

I think you have to dump with 8.4 to use -j on restore.

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: pg_restore -j

am 20.04.2010 18:43:57 von Tom Lane

Scott Mead writes:
> On Wed, Apr 14, 2010 at 2:38 AM, Justin Falk wrote:
>> This results in an error:
>> pg_restore: [custom archiver] dumping a specific TOC data block out of
>> order not supported without ID on this input stream (fseek required)

> I'm pretty sure that you need to use the 8.4 version of pg_dump when you
> create the backup file, then it should work.

While that might be best practice, it's not clear why testing fails to
reproduce the problem, as we found in the other recent thread. In any
case it'd be nice to deliver a more helpful error message, if the
combination really doesn't work in some cases. But we need a
reproducible case to figure out why it's failing.

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: pg_restore -j

am 21.04.2010 11:23:28 von Bryan White

On Tue, Apr 20, 2010 at 11:32 AM, Tom Lane wrote:
> There was something similar reported here:
> http://archives.postgresql.org/pgsql-admin/2010-04/msg00237. php
> but we haven't got to the bottom of it yet.

That issue turned out to be me not paying attention to the pg_dump
output. There was a deadlock with another process trying to recreate
a table. This caused the dump file to be incomplete.


--
Bryan White

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin